import request from '@/utils/request'

export function submit(data) {
  return request({
    url: 'buss/measureother/add',
    method: 'post',
    data
  })
}

export function getOne(id) {
  return request.get('buss/measureother/getOne?id='+id)
}

export function getTablePage(data) {
  return request.post('buss/measureother/listPage', data)
}

export function del(ids) {
  return request({
    url: 'buss/measureother/delete',
    method: 'post',
    data: ids
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/measureother/edit',
    method: 'post',
    data
  })
}

export function getPhase(data) {
  return request({
    url: 'buss/measureother/getPhaseByConSectId',
    method: 'post',
    data
  })
}

export function getData(phaseId) {
  return request.get('buss/measureother/getData?phaseId='+phaseId)
}


export default {
  submit,
  getOne,
  del,
  resubmit,
  getTablePage,
  getPhase,
  getData,
}
